package csl.blog.server.config.redis;

import io.netty.channel.ChannelHandler;
import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author chensl
 * @date 2023-05-11 17:32:14
 * @description
 */
@Configuration
@ChannelHandler.Sharable
public class RedissonConnector {

    @Bean("redissonClient")
    public RedissonClient getRedissonClient(){
        return Redisson.create();
    }

}
